@Controller
@RequestMapping("/user")
public class UserController {

    @RequestMapping("/login")
    public int login(HttpServletRequest request) {
        HttpSession session = request.getSession();
        if (session != null && session.getAttribute("username")) {

        }
        return -1;
    }

}